module.exports = {
    entry: './main.jsx',
    output: {
        filename: 'bundle.js'
    },
    module:{
        rules:[
            {
                test: /\.js[x]?$/,
                loader: 'babel-loader',
                query:{
                    presets: ['es2015', 'react']
                }
            },
            {
                test: /\.css$/,
                loader: 'style-loader!css-loader?modules'
            }
        ]
    }
}